<ul id="type_menu">
<?
	foreach ($this->types as $model_type)
    {
?>
	<li id="type_<?=$model_type->getID(); ?>">
        <a href="" onClick="ajaxTypes({id: <?=$model_type->getID(); ?>, action: 'edit', container: 'inner', no_apply: true}); return false;"><?=$model_type->getCaption();?></a>
	</li>
<?
	};
?>
    <li class="add_item">
        <a href="" onClick="addItem({menu: 'types', container: 'inner'}); return false;">Add new type</a>
    </li>
</ul>